<?php
$oRole = new Role();
$roles = $oRole->getAllRoles('`id`,`rolename`');
$role_arr = array();
foreach($roles['list'] as $row){
	//if($row['rolename'] == 'root')continue;
	$role_arr[$row['id']] = $row['rolename'];
}

##$__oManager = new Manager();
$list = $__oManager->get_list('*', $_GET, array('id' => 'DESC'), $__page, $__pagesize);
if(!empty($list)){
	foreach($list['list'] as $key => $row){
		$row['rolename'] = $role_arr[$row['role']];
		$row['lastLoginTime'] = ftime($row['lastLoginTime']);
		$row['addtime'] = ftime($row['addtime']);
		$row['updatetime'] = ftime($row['updatetime']);
		$list['list'][$key] = $row;
	}
	$vars['list'] = $list['list'];
	$vars['pagelist'] = $list['pagelist'];
}
$_GET['role'] = isset($_GET['role']) ? intval($_GET['role']) : 0;
$vars['role_options'] = make_options($role_arr, true, $_GET['role']);


?>